/**
 * 
 */
package com.baijia.tianxiao.push.biz.channel;

import java.util.Map.Entry;

import com.baijia.tianxiao.push.enums.DeviceTypeEnum;

/**
 * @author leiruiqi
 *
 */
public class StandardChannelUtils {

	public static String buildClientKey(DeviceTypeEnum deviceType,String appId,Integer developStatus){
		if(developStatus==null || developStatus>2){
			developStatus = 2;
		}
		return appId+"|"+deviceType.name()+"|"+developStatus;
	}
	
	public static void notifyChannelConfigChange(){
		for(Entry<String, StandardChannel> entry :StandardChannel.channelMap.entrySet()){
			entry.getValue().nofifyChannelConfigChange();
		}
	}
}
